﻿<Window x:Class="SPResourceTranslator.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   Title="SharePoint Resource File Translator" Height="750" Width="1000" Icon="/SPResourceTranslator;component/favicon.ico">
    <Window.Background>
        <RadialGradientBrush>
            <GradientStop Color="#3D84A4" Offset="0"/>
            <GradientStop Color="#135474" Offset="0.971"/>
        </RadialGradientBrush>
    </Window.Background>
    <DockPanel LastChildFill="True">
        <Image Source="header.jpg" DockPanel.Dock="Top" />
        <StackPanel Orientation="Horizontal" Background="#135474" DockPanel.Dock="Top">
            <TextBlock Margin="10px" Width="100"  FontWeight="Bold" Text="Resource file:" VerticalAlignment="Center" Foreground="white"/>
            <TextBox Margin="0px 10px 10px 10px" Width="745" x:Name="txtResourceLocation"></TextBox>
            <Button Margin="0px 10px 10px 10px" Width="75" Click="ButtonBrowseResource_Click">Browse</Button>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Background="#135474" DockPanel.Dock="Top">
            <TextBlock Margin="10px" Width="100"  FontWeight="Bold" Text="Method:" VerticalAlignment="Center" Foreground="white"/>
            <ComboBox Margin="0px 10px 10px 10px" Width="745" x:Name="drpLanguage" SelectionChanged="drpLanguage_SelectionChanged" />
        </StackPanel>
        <StackPanel Orientation="Horizontal" Background="#135474" DockPanel.Dock="Top">
            <TextBlock Margin="10px" Width="100"  FontWeight="Bold" Text="Save To:" VerticalAlignment="Center" Foreground="white"/>
            <TextBox Margin="0px 10px 1 10px" Width="600" x:Name="txtSaveLocation"></TextBox>
            <TextBlock Width="5"  FontWeight="Bold" Text="." VerticalAlignment="Center" Foreground="white"/>
            <ComboBox Margin="0px 10px 0 10px" Width="84" x:Name="drpLocaleID" DisplayMemberPath="Name"></ComboBox>
            <TextBlock Margin="1 10px 25px 10" Width="30"  FontWeight="Bold" Text=".resx" VerticalAlignment="Center" Foreground="white"/>
            <Button Margin="10" Width="75" Click="ButtonTranslate_Click">Translate</Button>
        </StackPanel>
        <ProgressBar x:Name="Progressbar" Height="20" DockPanel.Dock="Top"/>
        <TextBlock Foreground="white" Name="StatusText" Margin="10" DockPanel.Dock="Top" Text="The initialization may take a while after you press the 'Translate' button."/>
        <Canvas>        
            <TextBlock Foreground="Silver" Canvas.Left="10" Canvas.Bottom="10" Width="200" Text="http://www.tomvangaever.be" />
            <TextBlock Canvas.Right="10" Canvas.Bottom="10"></TextBlock>
        </Canvas>
    </DockPanel>


</Window>

